⬡ Hub
Skip to content

Google Cloud Functions

Google Cloud Functions is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions that respond to cloud events.

Key Features

  • Serverless: No servers to provision, manage, or upgrade.
  • Event-Driven: Responds to events from Cloud Storage, Pub/Sub, HTTP, etc.
  • Scalable: Scales automatically from zero to thousands of functions.

Use Cases

  • Data Processing: Process files as they are uploaded to Cloud Storage.
  • Webhooks: Implement webhooks for third-party integrations.
  • Lightweight APIs: Build simple microservices.

Key Concepts

  • Triggers: The event that invokes the function (HTTP, Background).
  • Runtimes: Supported languages (Node.js, Python, Go, Java, .NET, Ruby, PHP).
  • Gen 2: Built on Cloud Run, offering longer timeouts and larger instances.